package com.miaosha.service;

import com.miaosha.error.ErrorException;
import com.miaosha.model.UserInformationModel;

public interface UserService {

    UserInformationModel getUserById(Integer id);

    void register(UserInformationModel userInformationModel) throws ErrorException;

    /**
     *
     * @param mobile  用户手机
     * @param encryptPassword 加密密码
     * @throws ErrorException
     */
    UserInformationModel validateLogin(String mobile, String encryptPassword) throws ErrorException;
}
